<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div#dd{
				width: 100px;
				height: 100px;
				background: red;
				animation: myfirst 5s;/*把 "myfirst" 动画捆绑到 div 元素，时长：5 秒*/
				-webkit-animation:myfirst 5s; /* Safari and Chrome */
				color: yellow;
				text-align: center;
				line-height: 100px;
			}
			@keyframes myfirst{
				from{background: red;color: yellow;}
				to{background: yellow;color: red;}
			}
			@-webkit-keyframes myfirst /* Safari and Chrome */{
				from{background: red;color: yellow;}
				to{background: yellow;color: red;}
			}
		</style>
	</head>
	<body>
		<div id="dd">
			雪花飘飘
		</div>
	</body>
</html>
